/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Tan_curso implements Serializable {
	public Tan_curso() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TAN_CURSO_TAN_ALUMNO) {
			return ORM_tan_alumno;
		}
		else if (key == orm.ORMConstants.KEY_TAN_CURSO_TAN_SUBSECTOR) {
			return ORM_tan_subsector;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int cur_id;
	
	private String cur_nombre;
	
	private java.util.Set ORM_tan_alumno = new java.util.HashSet();
	
	private java.util.Set ORM_tan_subsector = new java.util.HashSet();
	
	private void setCur_id(int value) {
		this.cur_id = value;
	}
	
	public int getCur_id() {
		return cur_id;
	}
	
	public int getORMID() {
		return getCur_id();
	}
	
	/**
	 * Campo que almacena el nombre de un registro de curso.
	 */
	public void setCur_nombre(String value) {
		this.cur_nombre = value;
	}
	
	/**
	 * Campo que almacena el nombre de un registro de curso.
	 */
	public String getCur_nombre() {
		return cur_nombre;
	}
	
	private void setORM_Tan_alumno(java.util.Set value) {
		this.ORM_tan_alumno = value;
	}
	
	private java.util.Set getORM_Tan_alumno() {
		return ORM_tan_alumno;
	}
	
	public final orm.Tan_alumnoSetCollection tan_alumno = new orm.Tan_alumnoSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TAN_CURSO_TAN_ALUMNO, orm.ORMConstants.KEY_TAN_ALUMNO_TAN_CURSOCUR, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	private void setORM_Tan_subsector(java.util.Set value) {
		this.ORM_tan_subsector = value;
	}
	
	private java.util.Set getORM_Tan_subsector() {
		return ORM_tan_subsector;
	}
	
	public final orm.Tan_subsectorSetCollection tan_subsector = new orm.Tan_subsectorSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TAN_CURSO_TAN_SUBSECTOR, orm.ORMConstants.KEY_TAN_SUBSECTOR_TAN_CURSOCUR, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getCur_id());
	}
	
}
